package com.bruce.apkinstaller.install;

/**
 * Created by Administrator on 2018/1/17.
 */

public abstract class AbstractFactory {
    /*true: 用反射方法调用系统安装  false:用命令行调用安装*/
    public abstract InInstall getInstallType(boolean isInstall);

    /*true: 用反射方法调用系统卸载  false:用命令行调用卸载*/
    public abstract IUninstall getUnInstallType(boolean isUnInstall);

    protected String getType(boolean tag) {
        if (tag) {
            return ConstantInstallType.PM_INSTALL;
        } else {
            return ConstantInstallType.ARGS_INSTALL;
        }
    }
}
